package com.orange.core.pojo.entity.employee;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.orange.core.pojo.entity.ICreateModel;
import com.orange.core.pojo.entity.IIntIdModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class EmployeeCard implements IIntIdModel<EmployeeCard>, ICreateModel<EmployeeCard> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 品牌店铺id
     */
    private Integer shopId;

    private Integer employeeId;

    /**
     * 员工编号
     */
    @TableField(exist = false)
    private String employeeNo;

    /**
     * 员工姓名
     */
    @TableField(exist = false)
    private String employeeName;

    /**
     * 卡号
     */
    private String cardNo;

    /**
     * 删除
     */
    @TableLogic
    private Long del;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private LocalDateTime createTime;
}
